{{#extends @html/layouts/layout-standart.html}}

{{:title}}Список пользователей сообщества{{/:title}}

{{:init}}
	{{@community.html:init}}
	{{!connect "prototype.js"}}
	{{!connect "screen/content-users.css" media="screen" charset="utf-8"}} 
	{{!connect "screen/widgets-default.css" media="screen" charset="utf-8"}} 
	{{!connect "scriptaculous/scriptaculous.js"}}
<!--	{{?wg_members.content.actions.community_edit}}-->
	{{!connect "joinqueue.js"}}
	<script type="text/javascript" language="Javascript">
		var jq_submit_url = '{{/}}{{community.url}}/joinqueue/ajax';
	</script>
<!--	{{/?}}-->
{{/:init}}

{{:content_class}}content-users{{/:content_class}}

{{:layout_main}}
	<h1 class="title-">Очередь на модерацию</h1>
	<!--
	<ul class="listmenu-">
		<!-- меню "сортировать по..." - ->
		{{!for data.menu do=@:menu_item}}
		{{:menu_item *is_current}}
		<li class="selected-">{{@:menu_item_title}}</li>
		{{/:menu_item}}
		
		{{:menu_item}}
		<li><a href="{{/}}{{community.url}}/members?by={{*action}}">{{@:menu_item_title}}</a></li>
		{{/:menu_item}}
		
		{{:menu_item_title *action == 'date'}}По дате регистрации{{/:menu_item_title}}
		{{:menu_item_title *action == 'name'}}По алфавиту{{/:menu_item_title}}
		{{:menu_item_title *action == 'activity'}}По ативности{{/:menu_item_title}}
	</ul>
-->
	<div class="users-"><table id="userstable">
		<thead>
			<tr>
				<th class="name-">Имя пользователя<span>OpenId</span></th>
				<th class="status-">Действия</th>
			</tr>
		</thead>
		<tbody>
			{{!for items do=@:member}}
			{{:member}}
			<tr class="row-" >
				<td class="name-">
					<a href="{{/}}{{community.url}}/members/{{*url}}" class="user-">
					    <img src="{{?*avatar}}{{/}}imagestorage/{{*avatar}}/sm1{{?:}}{{images}}avatar-48x48.png{{/?}}" alt="" class="avatar-" />{{*fullname}}
					</a>
					<span class="openid-">{{*openid_url}}</span>
				</td>
				<td class="status-">
					<input class="userid-" type="hidden" value="{{*oid}}"/>
					<span class="approve-"><a href="#">Одобрить</a></span>&nbsp; &nbsp;
					<span class="decline-"><a href="#">Отклонить</a></span>
				</td>
			</tr>
			{{/:member}}
		</tbody>
	</table></div>
{{/:layout_main}}
